package com.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.services.LoginServices;

@Controller
@RequestMapping("/SB")
public class IndexController {
	
	
	//自动装配
	@Autowired
	private LoginServices login;
	

	@RequestMapping("/index1")
	public String index(){
		System.out.println("controller init");
		login.login();
		return "indexs";
	}
}
